import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '@/views/home/home.vue';
import movie from '@/views/movie/movie.vue';
import qa from '@/views/qa/qa.vue';
import user from '@/views/user/user.vue';
import login from '@/views/user/login.vue';

Vue.use(VueRouter)

const routes = [{
        path: '/home',
        name: 'home',
        component: home
    },
    {
        path: '/movie',
        name: 'movie',
        component: movie
    },
    {
        path: '/qa',
        name: 'qa',
        component: qa
    },
    {
        path: '/user',
        name: 'user',
        component: user
    },
    {
        path: '/login',
        name: 'login',
        component: login
    }
]

const router = new VueRouter({
    routes
})

export default router